<!-- PAGE CONTENT WRAPPER -->
<div class="page-content-wrap">

    <div class="row">
        <div style="background: #ffffff;">

            <form class="form-horizontal" name="editDHForm" novalidate>
                <div class="panel-default">
                    <div class="panel-heading">
                        <!--<h3 class="panel-title"><strong>编辑H5项目</strong> </h3>-->
                        <!--<ul class="panel-controls">-->
                        <!--<li><a href="javascript:void(0)" class="panel-remove"><span class="fa fa-times"></span></a></li>-->
                        <!--</ul>-->
                    </div>
                    <div class="panel-body panel-dialog">

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">图片</label>
                            <div class="col-md-6 col-xs-12">
                                <div class="profile-image">
                                    <img style="min-height: 50px;min-width: 50px;max-width: 100px;max-height: 100px;" ng-src="{{currentLearningMapExerciseDetail.picture | faceUrl}}" ngf-select ngf-change="uploadImage($files)" ngf-pattern="'image/*'"
                                         ngf-accept="'image/*'" ngf-max-size="20MB" ngf-min-height="100" ngf-resize="{width: 1000, height: 1000}" style="cursor: pointer"/>
                                </div>
                                <span class="help-block">{{'请上传图片' | dyLanguage}}<i style="cursor: pointer; "><span ng-show="showPictureProgress">({{pictureProgress.value}}%)</span></i></span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">名称</label>
                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" class="form-control" name="name" ng-model="currentLearningMapExerciseDetail.name" required/>
                                </div>
                                <span class="help-block" ng-show="(addSCForm.name.$untouched && !addSCForm.$submitted) || addSCForm.name.$valid">请输入名称</span>
                                <div ng-show="(addSCForm.name.$touched || addSCForm.$submitted ) && addSCForm.name.$invalid">
                                    <span class="error-block" ng-show="addSCForm.name.$error.required">必须要输入名称</span>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">排序</label>
                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="number" class="form-control" name="sort" ng-model="currentLearningMapExerciseDetail.sort" required/>
                                </div>
                                <span class="help-block" ng-show="(addSCForm.name.$untouched && !addSCForm.$submitted) || addSCForm.name.$valid">请输入名称</span>
                                <div ng-show="(addSCForm.name.$touched || addSCForm.$submitted ) && addSCForm.name.$invalid">
                                    <span class="error-block" ng-show="addSCForm.name.$error.required">必须要输入名称</span>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">描述</label>
                            <div class="col-md-6 col-xs-12">
                                <textarea class="form-control" rows="5" ng-model="currentLearningMapExerciseDetail.remark"></textarea>
                                <span class="help-block">请输入描述</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">内容</label>
                            <div class="col-md-6 col-xs-12">
                                --------------------
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">题目数</label>
                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="number" class="form-control" name="randomTopicNum" ng-model="currentLearningMapExerciseDetail.randomTopicNum"/>
                                </div>
                                <span class="help-block">随机抽取的题目数（默认是所有题目）</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">及格线</label>
                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="number" class="form-control" name="name" ng-model="currentLearningMapExerciseDetail.passingScore"/>
                                </div>
                                <span class="help-block">请输入及格线，默认是60分</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label"></label>
                            <div class="col-md-6">
                                <js-xls onread="readWB" onerror="error" class="fileinput btn-info" title="上传微帮格式文件"></js-xls>
                            </div>
                        </div>


                    </div>
                    <div class="panel-footer" style="text-align: center;">
                        <button class="btn btn-danger" ng-click="cancel()"><i class="fa fa-times"></i>取消</button>
                        <button class="btn btn-info" ng-click="saveExerciseDetail()"><i class="fa fa-check"></i>保存</button>
                    </div>
                </div>
            </form>

        </div>
    </div>

</div>
<!-- END PAGE CONTENT WRAPPER -->